<button type="button" class="btn" data-toggle="collapse" data-target="#createButton">
  Create
</button>
<div id="createButton" class="collapse">
  <hr>
  <div class="input-prepend">
    <span class="add-on">Name (optional):</span>
    <input ng-model="childName" class="span2" type="text">
  </div>
  <textarea id="childObject" rows="5" cols="20">{
    "text":"Hello World!",
    "count":10
    }</textarea><br/>
  <button ng-click="save()" class="btn btn-primary">Save</button>
</div>
